home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-SPAR.{_A / MACHINES.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  3KB  |  72 lines

  1. /* $Id: machines.h,v 1.2 1997/04/04 00:50:23 davem Exp $
  2.  * machines.h:  Defines for taking apart the machine type value in the
  3.  *              idprom and determining the kind of machine we are on.
  4.  *
  5.  * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
  6.  */
  7. #ifndef _SPARC64_MACHINES_H
  8. #define _SPARC64_MACHINES_H
  9.  
  10. /* XXX This should disappear. -DaveM */
  11.  
  12. struct Sun_Machine_Models {
  13.     char *name;
  14.     unsigned char id_machtype;
  15. };
  16.  
  17. /* Current number of machines we know about that has an IDPROM
  18.  * machtype entry including one entry for the 0x80 OBP machines.
  19.  */
  20. #define NUM_SUN_MACHINES   15
  21.  
  22. extern struct Sun_Machine_Models Sun_Machines[NUM_SUN_MACHINES];
  23.  
  24. /* The machine type in the idprom area looks like this:
  25.  *
  26.  * ---------------
  27.  * | ARCH | MACH |
  28.  * ---------------
  29.  *  7    4 3    0
  30.  *
  31.  * The ARCH field determines the architecture line (sun4, sun4c, etc).
  32.  * The MACH field determines the machine make within that architecture.
  33.  */
  34.  
  35. #define SM_ARCH_MASK  0xf0
  36. #define SM_SUN4       0x20
  37. #define SM_SUN4C      0x50
  38. #define SM_SUN4M      0x70
  39. #define SM_SUN4M_OBP  0x80
  40.  
  41. #define SM_TYP_MASK   0x0f
  42. /* Sun4 machines */
  43. #define SM_4_260      0x01    /* Sun 4/200 series */
  44. #define SM_4_110      0x02    /* Sun 4/100 series */
  45. #define SM_4_330      0x03    /* Sun 4/300 series */
  46. #define SM_4_470      0x04    /* Sun 4/400 series */
  47.  
  48. /* Sun4c machines                Full Name              - PROM NAME */
  49. #define SM_4C_SS1     0x01    /* Sun4c SparcStation 1   - Sun 4/60  */
  50. #define SM_4C_IPC     0x02    /* Sun4c SparcStation IPC - Sun 4/40  */
  51. #define SM_4C_SS1PLUS 0x03    /* Sun4c SparcStation 1+  - Sun 4/65  */
  52. #define SM_4C_SLC     0x04    /* Sun4c SparcStation SLC - Sun 4/20  */
  53. #define SM_4C_SS2     0x05    /* Sun4c SparcStation 2   - Sun 4/75  */
  54. #define SM_4C_ELC     0x06    /* Sun4c SparcStation ELC - Sun 4/25  */
  55. #define SM_4C_IPX     0x07    /* Sun4c SparcStation IPX - Sun 4/50  */
  56.  
  57. /* Sun4m machines, these predate the OpenBoot.  These values only mean
  58.  * something if the value in the ARCH field is SM_SUN4M, if it is
  59.  * SM_SUN4M_OBP then you have the following situation:
  60.  * 1) You either have a sun4d, a sun4e, or a recently made sun4m.
  61.  * 2) You have to consult OpenBoot to determine which machine this is.
  62.  */
  63. #define SM_4M_SS60    0x01    /* Sun4m SparcSystem 600                  */
  64. #define SM_4M_SS50    0x02    /* Sun4m SparcStation 10                  */
  65. #define SM_4M_SS40    0x03    /* Sun4m SparcStation 5                   */
  66.  
  67. /* Sun4d machines -- N/A */
  68. /* Sun4e machines -- N/A */
  69. /* Sun4u machines -- N/A */
  70.  
  71. #endif /* !(_SPARC64_MACHINES_H) */
  72.